package com.avery.mile.hadoop.rpc;

import org.apache.hadoop.ipc.ProtocolInfo;
import org.apache.hadoop.ipc.ProtocolSignature;

import java.io.IOException;

@ProtocolInfo(
        protocolName = "com.avery.mile.hadoop.rpc.BizProtocol",
        protocolVersion = 1L
)
public class BizServiceImpl implements BizProtocol {

    public String sayHello(String userName) {
        return "welcome " + userName;
    }

    public long getProtocolVersion(String s, long l) throws IOException {
        return versionID;
    }

    public ProtocolSignature getProtocolSignature(String s, long l, int i) throws IOException {
        return new ProtocolSignature();
    }
}
